package com.iwomy.secureplat.platform.api.feign;

import com.iwomy.secureplat.common.core.constant.ServiceNameConstants;
import com.iwomy.secureplat.common.core.util.R;
import com.iwomy.secureplat.platform.api.entity.BasicAuthorizationRecordEntity;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "remoteAuthorizationRecordService", value = ServiceNameConstants.PLATFORM_SERVER)
public interface RemoteAuthorizationRecordService {

	@GetMapping("/basicAuthorizationRecord/getById/{deptId}")
	R<BasicAuthorizationRecordEntity> getById(@PathVariable("deptId") Long deptId);

}
